package com.xbongbong.pro.productcategory.pojo.vo;

import com.alibaba.fastjson.JSONObject;
import com.xbongbong.paas.toolbox.wrap.BaseVO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * @author 吴峰
 * @version v1.0
 * @date 2019/3/22 10:24
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ProductCategoryVO implements Serializable {

    private static final long serialVersionUID = -3050346424716563422L;
    /**
     * 主键
     */
    @NotNull(message = "id不能为空")
    private Long id;

    /**
     * 公司id
     */
    private String corpid;

    /**
     *  父类id
     */
    @NotNull(message = "父类不能为空")
    private Long parentId;

    /**
     *  名称
     */
    private String name;

    /**
     * 路由
     */
    private String router;
    /**
     * 排序
     */
    private Integer sort;

    private List<ProductCategoryVO> childList;

    /**
     * 启用批次保质期
     */
    private Integer enableBatchShelfLife;

    /**
     * 保质期天数
     */
    private Long shelfLifeDays;

    /**
     * 到期预警天数
     */
    private Long expirationAlertDays;

    /**
     * 启用序列号
     */
    private Integer enableSerialNumber;

    private Integer enableMultiUnit;

    private JSONObject unitObject;

    public ProductCategoryVO() {
        childList = new ArrayList<>();
    }
}
